<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑角色</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <div class="flex justify-between items-center">
                    <h1 class="text-2xl font-bold text-gray-900">编辑角色</h1>
                </div>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <div class="bg-white shadow rounded-lg p-6">
                <form class="space-y-6">
                    <!-- 基本信息 -->
                    <div class="border-b pb-6">
                        <h2 class="text-lg font-bold mb-4">基本信息</h2>
                        <div class="space-y-4">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">角色名称</label>
                                <input type="text" class="w-full border rounded-md px-4 py-2" value="运营管理员">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">角色描述</label>
                                <textarea class="w-full border rounded-md px-4 py-2 h-24">负责日常运营管理工作，包括订单处理、内容审核等</textarea>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-2">状态</label>
                                <div class="space-x-4">
                                    <label class="inline-flex items-center">
                                        <input type="radio" name="status" class="h-4 w-4 text-blue-600" checked>
                                        <span class="ml-2">启用</span>
                                    </label>
                                    <label class="inline-flex items-center">
                                        <input type="radio" name="status" class="h-4 w-4 text-blue-600">
                                        <span class="ml-2">禁用</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 权限配置 -->
                    <div>
                        <h2 class="text-lg font-bold mb-4">权限配置</h2>
                        <div class="space-y-6">
                            <!-- 订单管理权限 -->
                            <div class="border-b pb-4">
                                <div class="flex items-center mb-4">
                                    <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                    <span class="ml-2 font-medium">订单管理</span>
                                </div>
                                <div class="ml-6 grid grid-cols-3 gap-4">
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">查看订单</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">处理订单</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">导出订单</span>
                                    </label>
                                </div>
                            </div>

                            <!-- 分销管理权限 -->
                            <div class="border-b pb-4">
                                <div class="flex items-center mb-4">
                                    <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                    <span class="ml-2 font-medium">分销管理</span>
                                </div>
                                <div class="ml-6 grid grid-cols-3 gap-4">
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">分销员管理</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">佣金管理</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">提现管理</span>
                                    </label>
                                </div>
                            </div>

                            <!-- 内容管理权限 -->
                            <div class="border-b pb-4">
                                <div class="flex items-center mb-4">
                                    <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                    <span class="ml-2 font-medium">内容管理</span>
                                </div>
                                <div class="ml-6 grid grid-cols-3 gap-4">
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">攻略管理</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">Banner管理</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                        <span class="ml-2">分类管理</span>
                                    </label>
                                </div>
                            </div>

                            <!-- 系统管理权限 -->
                            <div>
                                <div class="flex items-center mb-4">
                                    <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                    <span class="ml-2 font-medium">系统管理</span>
                                </div>
                                <div class="ml-6 grid grid-cols-3 gap-4">
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                        <span class="ml-2">角色管理</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                        <span class="ml-2">权限配置</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                        <span class="ml-2">操作日志</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 提交按钮 -->
                    <div class="flex justify-center space-x-4 pt-6">
                        <button type="button" class="px-6 py-2 border rounded-md">取消</button>
                        <button type="submit" class="px-6 py-2 bg-blue-600 text-white rounded-md">保存</button>
                    </div>
                </form>
            </div>
        </main>
    </div>
</body>
</html>